package com.stable.actor.network;

import java.io.Serializable;

/**
 * 服务响应类
 */
public class ServiceResponse implements Serializable {
    private static final long serialVersionUID = 1L;

    private final String serviceType;  // "payment", "inventory", "notification"
    private final boolean success;
    private final String message;

    public ServiceResponse(String serviceType, boolean success, String message) {
        this.serviceType = serviceType;
        this.success = success;
        this.message = message;
    }

    // Getters
    public String getServiceType() { return serviceType; }
    public boolean isSuccess() { return success; }
    public String getMessage() { return message; }

    @Override
    public String toString() {
        return String.format("ServiceResponse[type=%s, success=%s, message=%s]",
                serviceType, success, message);
    }
}

